
<template>
	<view>
<!-- 	<uni-nav-bar statusBar @clickLeft='clickLeft()' @clickRight="clickRight()" :border='border' color="#000000"
			fixed backgroundColor='#FFFFFF00' left-icon="left" title="收费说明">

		</uni-nav-bar>
		<view class="topView">
			<view class="topView1"></view>
			</view> -->
			<view @click="imageClick()" class="image">
				<image  :src="data.image" ></image>
				<!-- <image  :src="userinfo.avatar" mode="widthFix"></image> -->
			</view>
			<view class="" style="padding: 20rpx;">
					<rich-text v-html="data.content"> </rich-text>
			</view>
			<!-- <view v-for="(item,index) in list" :key="index">
				<view class="item">
					<view class="flex-row-flex-start">
						<view class="line">
							
						</view>
						<view class="title">
							{{item.title}}
						</view>
					</view>
					<view class="time">
						{{item.time}}
					</view>
					<view class="title1">
						{{item.title1}}
					</view>
					<view v-for="(item1,index1) in item.list" :key="index1">
						<view class="item1 flex-row-space-between">
							<view class="left">
								{{item1.left}}
							</view>
							<view class="left">
								{{item1.right}}
							</view>
						</view>
					</view>
				</view>
			</view> -->
			
	</view>
</template>

<script>
	
	import {
		getStartPrice,
	} from '@/api/index.js'
	export default {
		components: {},
		computed: {

		},
		data() {
			return {
				data:{},
				ylInfo:{},
			border: false,
				list:[
					{
						title:'围栏内',
						time:'0:00 ~ 23:59',
						title1:'起步价28.00元，不限公里数（30分钟以内）',
						list:[
							{
								left:'5公里以内',
								right:'1公里/5元',
							}
						]
					},
					{
						title:'围栏外',
						time:'',
						title1:'',
						list:[
							{
								left:'5公里以内',
								right:'1公里/5元',
							}
						]
					},
					{
						title:'超时费',
						time:'0:00 ~ 23:59',
						title1:'免费等候8分钟，超时每分钟1.00钱，封顶180.00元',
						list:[
							
						]
					}
				]
			}
		},
		onShow() {

		},
		onLoad() {
			this.ylInfo = uni.getStorageSync('ylInfo')
			this.userinfo=uni.getStorageSync('userinfo')
			this.getStartPrice()
		},
		
		methods: {
			showToast(title){
				uni.showToast({
					title:title,
					icon:'none'
				})
			},
			getStartPrice(){
				getStartPrice({
					lat:this.ylInfo.latitude,
					lng:this.ylInfo.longitude,
					city:this.ylInfo.city
				})
					.then(res => {
						this.data=res.data
					})
			},
			imageClick(){
				uni.previewImage({
					urls:[this.data.image]
				})
			},
			clickLeft(){
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss">
page{
	background: #F5F6F7;
	padding-bottom: 20rpx;
}
.image{
	width: 100%;
	height: 560rpx;
	image{
		width: 100%;
		height: 100%;
			border-radius: 20rpx;
	}
}
.item{
	margin: 30rpx;
	margin-bottom: 0rpx;
	padding: 30rpx;
	background: #FFFFFF;
	border-radius: 16rpx;
	opacity: 1;
}
.line{
	width: 8rpx;
	height: 28rpx;
	background: $base-color;
	border-radius: 0rpx 0rpx 0rpx 0rpx;
	opacity: 1;
}
.title{
	margin-left: 10rpx;
	font-size: 28rpx;
	font-family: PingFang SC-Medium, PingFang SC;
	// font-weight: 500;
	color: #3D3D3D;
}
.time{
	margin-top: 10rpx;
	font-size: 28rpx;
	font-family: PingFang SC-Medium, PingFang SC;
	// font-weight: 500;
	color: #333333;
}
.title1{
	margin-top: 20rpx;
	font-size: 28rpx;
	font-family: PingFang SC-Regular, PingFang SC;
	// font-weight: 400;
	color: #333333;
}
.item1{
	padding: 0 30rpx;
	margin: 0 0rpx;
	margin-top: 30rpx;
	height: 106rpx;
	background: #F5F6F7;
	border-radius: 12rpx 12rpx 12rpx 12rpx;
}
.left{
	font-size: 28rpx;
	font-family: PingFang SC-Regular, PingFang SC;
	font-weight: 400;
	color: #3D3D3D;
}

</style>
